package com.xiyu.service.vo.market.task.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;

import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 邮件营销接收人 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MarketTaskReceiverBase {

    @Schema(description = "任务ID")
    private Long taskId;

    @Schema(description = "邮件地址")
    @Size(max = 255, message = "长度不能超过255")
    private String mailAddress;

    @Schema(description = "客户联系人ID")
    private Long contactId;

    @Schema(description = "营销邮件ID")
    @Size(max = 100, message = "营销邮件ID长度不能超过100")
    private String marketMailId;

    @Schema(description = "是否发送")
    private Boolean isRequest;

    @Schema(description = "是否送达")
    private Boolean isDeliver;

    @Schema(description = "是否打开")
    private Boolean isOpen;

    @Schema(description = "是否点击")
    private Boolean isClick;

    @Schema(description = "是否回复")
    private Boolean isReply;

    @Schema(description = "是否无效")
    private Boolean isInvalid;

    @Schema(description = "无效类型")
    @Range(max = 100000000, message = "无效类型最大不能超过100000000")
    private Integer invalidType;

    @Schema(description = "无效原因")
    @Size(max = 255, message = "无效原因长度不能超过255")
    private String invalidReason;

    @Schema(description = "邮件messageId")
    @Size(max = 100, message = "邮件messageId长度不能超过100")
    private String messageId;

}
